package com.twinkle.bean;

/**
 * ABMS - SSM
 * <p>用户登录信息持久化类</p>
 * <p>bean -> class :UserInfo -> table :userinfo</p>
 * <p>ver 1.0.1 更新了 user_id 的数据类型</p>
 *
 * @author Twinkle
 * @version 1.0.1
 * @since 5 Nov. 2020
 */
public class UserInfo {
    private Integer userinfo_id;
    private String username;
    private String password;

    public UserInfo() {

    }

    public UserInfo(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public Integer getUserinfo_id() {
        return userinfo_id;
    }

    public void setUserinfo_id(Integer userinfo_id) {
        this.userinfo_id = userinfo_id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * <p>转换为键值对</p>
     *
     * @return key-value string
     */
    public String toString() {
        return "UserInfo [userinfo_id=" + userinfo_id
                + ", username=" + username
                + ", password=" + password
                + "]";
    }
}
